package com.itheima.d2_array;


import java.util.Scanner;

public class Test6 {
    public static void main(String[] args) {
        int[] a = new int[5];
        Scanner sc = new Scanner(System.in);

        for (int i = 0; i < a.length; i++) {
            System.out.println("请输入第" + (i + 1) + "个数据");
            a[i] = sc.nextInt();
        }

        int max = a[0];

        for (int z = 1; z < a.length; z++) {
            if (a[z] > max){
                max = a[z];
            }
        }
        System.out.println(max);



    }
}
